package org.wuhong.controller;

import com.wuhong.entity.Accounts;
import com.wuhong.entity.Catalogue;
import com.wuhong.result.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import org.wuhong.service.CatalogueService;
import org.wuhong.service.FolderService;
import org.wuhong.utils.JWTUtil;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @ClassName FolderContorller
 * @Description TODO
 * @Author director吴
 * @Date 2023/4/23 8:43
 * @Version 1.0
 **/
@RequestMapping("/folder")
@ResponseBody
@Controller
public class FolderContorller {
    @Autowired
    FolderService folderService;


    @RequestMapping("/getAllFolders")
    public ResultData getAllFolders(@RequestBody Map<String,String> map) throws Exception {
       return folderService.getAllFolders(map);
    }


    @RequestMapping("/getAllFoldersChrild")
    public ResultData getAllFoldersChrild(@RequestBody Map<String,String> map) throws Exception {
        return folderService.getAllFoldersChrild(map);
    }



}
